



/**
 * 表格列插件插件类
 *
 * @export
 * @class Gridcol
 * @extends {Vue}
 */
export class Gridcol {

    public renderCtrlItem(h:any, ctrlItemModel:any, parentContainer:any,data:any){
        return h('el-table-column', {
            scopedSlots: {
                default: (scope: any) => {
                    return <span style={{'color':scope.row.amount>=100?'red':'green'}}>{scope.row.amount}</span>
                },
                header: () => {
                    return <span class="column-header">{ctrlItemModel.caption}</span>
                }
            }
        });
    }

}
